package com.example.allplan.JavaBean;

public class JiHuaJavaBean implements Comparable<JiHuaJavaBean>{
    public JiHuaJavaBean(int id, int lei_xing, int suo_shu_ji_hua_bao_id, int pai_xu_you_biao, int yuan_suo_shu_id, String ming_cheng, String wen_jian_ming) {
        this.id = id;
        this.lei_xing = lei_xing;
        this.suo_shu_ji_hua_bao_id = suo_shu_ji_hua_bao_id;
        this.pai_xu_you_biao = pai_xu_you_biao;
        this.yuan_suo_shu_id = yuan_suo_shu_id;
        this.ming_cheng = ming_cheng;
        this.wen_jian_ming = wen_jian_ming;
    }

    /**
     * id : 1
     * lei_xing : 0
     * suo_shu_ji_hua_bao_id : 1
     * pai_xu_you_biao : 1
     * yuan_suo_shu_id : 1
     * ming_chneg : s
     * wen_jian_ming : s
     */

    private int id;
    private int lei_xing;
    private int suo_shu_ji_hua_bao_id;
    private int pai_xu_you_biao;
    private int yuan_suo_shu_id;
    private String ming_cheng;
    private String wen_jian_ming;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLei_xing() {
        return lei_xing;
    }

    public void setLei_xing(int lei_xing) {
        this.lei_xing = lei_xing;
    }

    public int getSuo_shu_ji_hua_bao_id() {
        return suo_shu_ji_hua_bao_id;
    }

    public void setSuo_shu_ji_hua_bao_id(int suo_shu_ji_hua_bao_id) {
        this.suo_shu_ji_hua_bao_id = suo_shu_ji_hua_bao_id;
    }

    public int getPai_xu_you_biao() {
        return pai_xu_you_biao;
    }

    public void setPai_xu_you_biao(int pai_xu_you_biao) {
        this.pai_xu_you_biao = pai_xu_you_biao;
    }

    public int getYuan_suo_shu_id() {
        return yuan_suo_shu_id;
    }

    public void setYuan_suo_shu_id(int yuan_suo_shu_id) {
        this.yuan_suo_shu_id = yuan_suo_shu_id;
    }

    public String getMing_cheng() {
        return ming_cheng;
    }

    public void setMing_cheng(String ming_cheng) {
        this.ming_cheng = ming_cheng;
    }

    public String getWen_jian_ming() {
        return wen_jian_ming;
    }

    public void setWen_jian_ming(String wen_jian_ming) {
        this.wen_jian_ming = wen_jian_ming;
    }

    @Override
    public int compareTo(JiHuaJavaBean o) {
        if(o.getPai_xu_you_biao()>this.pai_xu_you_biao) return -1;
        else return 1;
    }
}
